projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c66e1e
)
ARM: pl310: Add macro's for handling tag and data latency mask
author
Dinh Nguyen
<
[email protected]
>
Tue, 23 Apr 2019 21:55:02 +0000
(16:55 -0500)
committer
Tom Rini
<
[email protected]
>
Sun, 5 May 2019 12:48:50 +0000
(08:48 -0400)
Add the PL310 macros for latency control setup, read and write bits.
Reviewed-by: Marek Vasut <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Signed-off-by: Dinh Nguyen <
[email protected]
>
arch/arm/include/asm/pl310.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/pl310.h
b/arch/arm/include/asm/pl310.h
index b83978b1cc680ee27f8b917843158bdc4187dc36..f69e9e45f8668d8918b479fe7e72943f4d122345 100644
(file)
--- a/
arch/arm/include/asm/pl310.h
+++ b/
arch/arm/include/asm/pl310.h
@@
-18,6
+18,9
@@
#define L310_SHARED_ATT_OVERRIDE_ENABLE (1 << 22)
#define L310_AUX_CTRL_DATA_PREFETCH_MASK (1 << 28)
#define L310_AUX_CTRL_INST_PREFETCH_MASK (1 << 29)
+#define L310_LATENCY_CTRL_SETUP(n) ((n) << 0)
+#define L310_LATENCY_CTRL_RD(n) ((n) << 4)
+#define L310_LATENCY_CTRL_WR(n) ((n) << 8)
#define L2X0_CACHE_ID_PART_MASK (0xf << 6)
#define L2X0_CACHE_ID_PART_L310 (3 << 6)